<?php

namespace Biz\pockets\constInterface;

interface PayConfig
{
    const _CONST_PAY_WAYS_PREFIX = '_PAY_WAYS_';
    const _PAY_WAYS_ALIPAY = 'alipay';
    const _PAY_WAYS_WECHAT = 'wechat';
    const _PAY_WAYS_MINIPROGRAM = 'miniprogram';
    const _PAY_WAYS_TUAN_MINIPROGRAM = 'tuan_miniprogram';
    const _PAY_WAYS_THE_PARAGRAPH_MINIPROGRAM = 'the_paragraph';
    const _PAY_WAYS_ALIPAY_QRCODE = 'alipay_qrcode';
    const _PAY_WAYS_WECHAT_QRCODE = 'wechat_qrcode';
    const _PAY_WAYS_CUSTOMIZE_PAY_WAY = 'customize_pay_way';
    const _PAY_WAYS_IAP = 'iap';
    const _PAY_WAYS_TILES = 'tiles';//瓦片支付
    const _PAY_WAYS_WECHAT_BIZ = 'wechat_biz';//商业收费服务
    const _PAY_WAYS_WECHAT_BIZ_QRCODE = 'wechat_biz_qrcode';//商业收费服务

    const _PAY_ORDER_TYPE_BIZ = 1;
    const _PAY_ORDER_TYPE_DESIGNER = 2;//设计师认证
    const _PAY_ORDER_TYPE_COURSE = 3;//付费课
    const _PAY_ORDER_TYPE_TILES = 4;//充值瓦片
    const _PAY_ORDER_TYPE_BRAND = 5; //品牌认证
    const _PAY_ORDER_TYPE_AD = 6;//广告cpm账户充值
    const _PAY_ORDER_TYPE_PACKAGE = 7;//新人礼包
    const _PAY_VER_DEFAULE = 0;


    const _BIZ_ORDER_NAME_PREFIX = '好好住-订单编号';
    const _DESIGNER_ORDER_NAME_PREFIX = '';

    const _PAY_WAYS_DESC = [
        self::_PAY_WAYS_ALIPAY => '支付宝',
        self::_PAY_WAYS_WECHAT => '微信',
        self::_PAY_WAYS_MINIPROGRAM => '微信小程序',
        self::_PAY_WAYS_TUAN_MINIPROGRAM => '团购小程序',
        self::_PAY_WAYS_THE_PARAGRAPH_MINIPROGRAM => '节选小程序',
        self::_PAY_WAYS_ALIPAY_QRCODE => '支付宝扫码',
        self::_PAY_WAYS_WECHAT_QRCODE => '微信扫码',
        self::_PAY_WAYS_CUSTOMIZE_PAY_WAY => '自定义支付',
        self::_PAY_WAYS_IAP => 'IAP支付',
        self::_PAY_WAYS_TILES => '瓦片支付',
        self::_PAY_WAYS_WECHAT_BIZ => '微信-商业服务',
        self::_PAY_WAYS_WECHAT_BIZ_QRCODE => '微信扫码-商业服务'
    ];

    const _ALIPAY_PAY_WAYS_LIST = [
        self::_PAY_WAYS_ALIPAY,
        self::_PAY_WAYS_ALIPAY_QRCODE
    ];

    const _WECHAT_PAY_WAYS_LIST = [
        self::_PAY_WAYS_WECHAT,
        self::_PAY_WAYS_MINIPROGRAM,
        self::_PAY_WAYS_TUAN_MINIPROGRAM,
        self::_PAY_WAYS_THE_PARAGRAPH_MINIPROGRAM,
        self::_PAY_WAYS_WECHAT_QRCODE,
        self::_PAY_WAYS_WECHAT_BIZ,
        self::_PAY_WAYS_WECHAT_BIZ_QRCODE
    ];

    const _APP_PAY_WAYS_LIST = [
        self::_PAY_WAYS_ALIPAY,
        //self::_PAY_WAYS_WECHAT,
    ];

    const _ANDROID_COURSE_PAY_WAYS_LIST = [
        self::_PAY_WAYS_WECHAT_BIZ,
        self::_PAY_WAYS_ALIPAY
    ];

    const _IOS_COURSE_PAY_WAYS_LIST = [
        self::_PAY_WAYS_TILES,
    ];

    const _PAY_WAY_ORDER = [
        self::_PAY_WAYS_CUSTOMIZE_PAY_WAY,
        self::_PAY_WAYS_WECHAT_BIZ_QRCODE,
        self::_PAY_WAYS_WECHAT_QRCODE,
        self::_PAY_WAYS_ALIPAY_QRCODE,
        self::_PAY_WAYS_TUAN_MINIPROGRAM,
        self::_PAY_WAYS_THE_PARAGRAPH_MINIPROGRAM,
        self::_PAY_WAYS_MINIPROGRAM,
        self::_PAY_WAYS_WECHAT_BIZ,
        self::_PAY_WAYS_WECHAT,
        self::_PAY_WAYS_ALIPAY,
    ];

}